
#ifndef TestCalls_h
#define TestCalls_h
// Note 1
#include <cppunit/extensions/HelperMacros.h>
class CallsTest : public CPPUNIT_NS::TestFixture // Note 2
{
CPPUNIT_TEST_SUITE( CallsTest ); // Note 3
CPPUNIT_TEST( testConstructor );
CPPUNIT_TEST( testSetCalls );
CPPUNIT_TEST( testGetCalledBy );
CPPUNIT_TEST( testGetCalledByLine );
CPPUNIT_TEST( testGetCallerOf );
CPPUNIT_TEST( testGetCallerLineOf );
CPPUNIT_TEST( testIsCalls );
CPPUNIT_TEST_SUITE_END();
public:
void setUp();
void tearDown();
// method to test the constructor
void testConstructor();
// method to test the assigning and retrieval of grades
void testSetCalls();
void testGetCalledBy();
void testGetCalledByLine();
void testGetCallerOf();
void testGetCallerLineOf();
void testIsCalls();
};
#endif